package com.haiya.adapter.motorcase;

public class OpticalAdapter implements Motor {
    OpticalMotor motor;

    public OpticalAdapter(OpticalMotor motor) {
        this.motor = motor;
    }

    @Override
    public void drive() {
        System.out.println("光能发动机适配中~~~~~");
        motor.opticalDrive();
    }
}
